<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>积分交易流水</title>
<link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
<link rel="stylesheet" type="text/css" href="../../css/common.css" />
<style>
.aui-content{
  padding: 0 0.8rem;
}

table td:first-child{
  padding-left: 0 !important;
}
table{
  width: 100%;
  font-size:0.6rem;
  color: #444444;
}
table thead tr td{
  padding: 1rem 0;
}
table tbody tr td{
  padding-bottom: 0.65rem;
}

</style>
</head>
<body>
  <div class="aui-content">
    <!-- 无奖励明细显示 -->
    <div class="notData aui-hide bg-white">
      <img src="../../image/notdata/12.png" class="notImg" alt="">
      <div class="aui-font-size-14 color-ad">暂无交易信息</div>
    </div>
  <div id="list_html"></div>
  <script type="text/x-dot-template" id="list_tpl">
  <div class="aui-content bg-white">
    <table>
      <thead>
        <tr>
          <td>交易时间</td>
          <td>金额</td>
          <td>交易事件</td>
          <td>积分余额</td>
        </tr>
      </thead>
      <tbody>
      	{{ for(var i in it) { }}
          <tr data-id="{{=it[i].yo_id}}">
            <td>{{=it[i].yo_addtime}}</td>
            {{ if( it[i].yo_status == 1){ }}
              <td>+{{=it[i].yo_count}}</td>
      			{{ }else { }}
            <td>-{{=it[i].yo_count}}</td>
            {{}}}
            <td>{{=it[i].yo_content}}</td>
            <td>{{=it[i].yo_balance}}</td>
          </tr>
        {{ }}}

      </tbody>
    </table>
  </div>
  <div class="aui-font-size-12 aui-py-15 color-666 aui-text-center">没有更多了</div>
  </script>
</div>
</body>
<script type="text/javascript" src="../../script/import.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
apiready = function(){
	api.parseTapmode();
  getUCionRecord()
};
function getUCionRecord(){
  api.ajax({
      url: BASE_URL + 'App/User/uCionRecord',
      method: 'post',
      data: {
          values: {
              userid: getUserId()
          }
      }
  },function(ret, err){
      if (ret && ret.code == 1) {
        $$('.notData').addClass('aui-hide')
        var tpl = $$('#list_tpl').html();
        var tempFn = doT.template(tpl);
        $$('#list_html').html(tempFn(ret.data));
      } else {
        $$('.notData').removeClass('aui-hide')
        $$('#list_html').html('')
      }
  });
}
</script>
</html>
